/-app ...
/-app/tests
TestCase.ts
TestPage.ts
Application.ts
/-boot
/-imports
/-storage
/-tests
_sampleTests.ts
/-typings
stringUtils.ts
teapo.html
1
module teapo.app {
2
 
3
  export class Application {
4
 
5
    tests: tests.TestPage = null;
6
    
7
    constructor(private _host: HTMLElement = document.body) {
8
 
9
      this._startBoot();
10
    }
11
 
12
    private _startBoot() {
13
      if (earlyElement) {
14
        earlyElement.textContent = 'Loading test list...';
15
      }
16
 
17
      setTimeout(() => {
18
        this.tests = new tests.TestPage();
19
 
20
        this._completeBoot();
21
      }, 10);
22
    }
23
 
24
    private _completeBoot() {
25
      if (earlyElement) {
26
        this._host.removeChild(earlyElement);
27
      }
28
      
29
      //ko.renderTemplate()
30
      
31
    }
32
 
33
  }
34
 
35
}